<template>
  <div class="dashboard-editor-container">
    <el-row>
      <el-col :xs="{span: 24}" :sm="{span: 24}" :md="{span: 24}" :lg="{span: 24}" :xl="{span: 24}" style="margin-bottom:30px;">
        <os-info :module="module" />
      </el-col>
    </el-row>

    <el-row>
      <el-col :xs="{span: 24}" :sm="{span: 24}" :md="{span: 24}" :lg="{span: 24}" :xl="{span: 24}" style="margin-bottom:30px;">
        <cpu-info :module="module" />
      </el-col>
    </el-row>

    <el-row :gutter="8">
      <el-col :xs="{span: 24}" :sm="{span: 24}" :md="{span: 24}" :lg="{span: 24}" :xl="{span: 24}" style="padding-right:8px;margin-bottom:30px;">
        <mem-pane :module="module" />
      </el-col>
    </el-row>

    <el-row :gutter="8">
      <el-col :xs="{span: 24}" :sm="{span: 24}" :md="{span: 24}" :lg="{span: 24}" :xl="{span: 24}" style="padding-right:8px;margin-bottom:30px;">
        <disk-pane :module="module" />
      </el-col>
    </el-row>

    <el-row :gutter="8">
      <el-col :xs="{span: 24}" :sm="{span: 24}" :md="{span: 24}" :lg="{span: 24}" :xl="{span: 24}" style="padding-right:8px;margin-bottom:30px;">
        <network-pane :module="module" />
      </el-col>
    </el-row>

  </div>
</template>

<script>

import CpuInfo from './components/CpuInfo.vue'
import OsInfo from './components/OsInfo.vue'
import DiskPane from './components/DiskPane.vue'
import MemPane from './components/MemPane.vue'
import NetworkPane from './components/NetworkPane.vue'

export default {
  components: {
    OsInfo,
    CpuInfo,
    DiskPane,
    MemPane,
    NetworkPane
  },
  filters: {
  },
  data() {
    return {
      module: 0
    }
  },
  created() {
    this.module = Number(this.$route.params.module)
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.dashboard-editor-container {
  padding: 32px;
  background-color: rgb(240, 242, 245);
  position: relative;

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 32px;
  }
}

@media (max-width:1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
</style>
